package com.huihua.it.enums;

/**
 * @author Huihua.Chang
 */
public enum CodeEnum {
    SUCCESS(0, "请求成功"),
    FAIL(1, "请求失败");

    public final int code;
    public final String msg;

    public Integer getCode() {
        return this.code;
    }

    CodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return this.msg;
    }
}
